package edu.sctu.practice.class01.fengleilin.assign03.test01;

/**
 * Created by fll on 2015/10/22.
 */
public class GeometricMain {
    /**
     * 创建两个几何对象，一个圆和一个矩形
     */
    public static void main(String[] args) {

        Circle circle = new Circle("白色");
        Rectangle rectangle = new Rectangle("黑色");

        GeometricObject object1 = circle;
        GeometricObject object2 = rectangle;

        circle.radius = 3;
        rectangle.width = 3;
        rectangle.height = 5;

        CompareInfo.equalArea(object1, object2);

        CompareInfo.displayGeometricObject(object1);
        CompareInfo.displayGeometricObject(object2);


    }
}
